home *** CD-ROM | disk | FTP | other *** search
- #ifndef MF3D_MACROS_H
- #define MF3D_MACROS_H
- /*==============================================================================
- *
- * File: MFMACROS.H
- *
- * Function: For oft-repeated code.
- *
- * Version: Metafile: Version 1.0 3DMF files
- * Package: Release #2 of this code
- *
- * Author(s): Rick Wong (RWW), Duet Development Corp.
- * John Kelly (JRK), Duet Development Corp.
- *
- * Copyright: (c) 1995 by Apple Computer, Inc., all rights reserved.
- *
- * Change History (most recent first):
- * FB7_JRK Mac pragmas
- * Fabio Changed file name to 8 characters
- * F2N_RWW File created.
- *==============================================================================
- */
- #if defined(applec) || defined(__MWERKS__) || defined(THINK_C)
- #pragma once
- #endif
-
- /* Suppress parameter unused warnings */
- #define MF3D_Unused(x) if (0) (x)
-
- #define MF3D_Allocate(ptr) { (ptr) = MF3D_Malloc(sizeof(*(ptr))); \
- if ((ptr) == NULL) \
- result = kMF3DErrOutOfMemory; \
- }
-
- #endif
-